home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3camera.h
- // Auto generated file, do not modify by hand
- // Copyright ⌐ 2004, Realsoft Graphics Oy
-
- var R3_CAMERA_H = 1;
- include("real/objects/r3level.js")
-
-
- var R3CLID_CAMERA = 332;
-
-
-
-
-
- R3CAMM_RENDERLENSFLARE = 332000;
-
- function mR3CAMM_RENDERLENSFLARE() {
- DoA(this.r3obj, 332000, 0, R3TID_INTEGER, 0);
- }
-
-
- R3CAMM_FINDCURRENT = 332001;
-
- function mR3CAMM_FINDCURRENT() {
- DoA(this.r3obj, 332001, 0, R3TID_INTEGER, 0);
- }
-
- // Description: changes the object space
- // p3: r3Vect, translate delta is absolute space
-
- R3CAMM_TRANSLATESELECTEDPOIN = 332002;
-
- function mR3CAMM_TRANSLATESELECTEDPOIN(p3) {
- DoA(this.r3obj, 332002, p3, R3TID_VECTOR, 0);
- }
-
- // Description: Low level set point.
- // Returns: Boolean, true if succeeded
- // p1: Integer, index of the point to be set (see CAMP_ codes below)
- // p3: r3Vect, point in object space
-
- R3CAMM_SETPOINTLOCAL = 332003;
-
- function mR3CAMM_SETPOINTLOCAL(p1, p3) {
- return DoA2(this.r3obj, 332003, p1, R3TID_INTEGER, 0, p3, R3TID_VECTOR, 0);
- }
-
- // Description: Low level get point.
- // Returns: Boolean, true if succeeded
- // p1: Integer, index of the point to be set (see CAMP_ codes below)
- // p3: r3Vect, point in object space
-
- R3CAMM_GETPOINTLOCAL = 332004;
-
- function mR3CAMM_GETPOINTLOCAL(p1, p3) {
- return DoA2(this.r3obj, 332004, p1, R3TID_INTEGER, 0, p3, R3TID_VECTOR, 0);
- }
-
-
-
-
- R3CAMA_Position = 332500;
- function SetR3CAMA_Position(value) {
- R3Set(this.r3obj, R3CAMA_Position, value, R3TID_VECTOR, 0);
- }
-
- function GetR3CAMA_Position() {
- return R3Get(this.r3obj, R3CAMA_Position, R3TID_VECTOR, 0);
- }
-
- R3CAMA_Direction = 332501;
- function SetR3CAMA_Direction(value) {
- R3Set(this.r3obj, R3CAMA_Direction, value, R3TID_VECTOR, 0);
- }
-
- function GetR3CAMA_Direction() {
- return R3Get(this.r3obj, R3CAMA_Direction, R3TID_VECTOR, 0);
- }
-
- R3CAMA_Up = 332502;
- function SetR3CAMA_Up(value) {
- R3Set(this.r3obj, R3CAMA_Up, value, R3TID_VECTOR, 0);
- }
-
- function GetR3CAMA_Up() {
- return R3Get(this.r3obj, R3CAMA_Up, R3TID_VECTOR, 0);
- }
-
- R3CAMA_AspectRatio = 332503;
- function SetR3CAMA_AspectRatio(value) {
- R3Set(this.r3obj, R3CAMA_AspectRatio, value, R3TID_FLOAT, 0);
- }
-
- function GetR3CAMA_AspectRatio() {
- return R3Get(this.r3obj, R3CAMA_AspectRatio, R3TID_FLOAT, 0);
- }
-
- R3CAMA_CoordSys = 332504;
- function SetR3CAMA_CoordSys(value) {
- R3Set(this.r3obj, R3CAMA_CoordSys, value, R3TID_COORDSYS, R3TNF_ARRAY);
- }
-
- function GetR3CAMA_CoordSys() {
- return R3Get(this.r3obj, R3CAMA_CoordSys, R3TID_COORDSYS, R3TNF_ARRAY);
- }
-
- R3CAMA_FilmWidth = 332505;
- function SetR3CAMA_FilmWidth(value) {
- R3Set(this.r3obj, R3CAMA_FilmWidth, value, R3TID_FLOAT, 0);
- }
-
- function GetR3CAMA_FilmWidth() {
- return R3Get(this.r3obj, R3CAMA_FilmWidth, R3TID_FLOAT, 0);
- }
-
- R3CAMA_FilmHeight = 332506;
- function SetR3CAMA_FilmHeight(value) {
- R3Set(this.r3obj, R3CAMA_FilmHeight, value, R3TID_FLOAT, 0);
- }
-
- function GetR3CAMA_FilmHeight() {
- return R3Get(this.r3obj, R3CAMA_FilmHeight, R3TID_FLOAT, 0);
- }
-
- R3CAMA_Angle = 332507;
- function SetR3CAMA_Angle(value) {
- R3Set(this.r3obj, R3CAMA_Angle, value, R3TID_FLOAT, 0);
- }
-
- function GetR3CAMA_Angle() {
- return R3Get(this.r3obj, R3CAMA_Angle, R3TID_FLOAT, 0);
- }
-
- R3CAMA_Projection = 332508;
- function SetR3CAMA_Projection(value) {
- R3Set(this.r3obj, R3CAMA_Projection, value, R3TID_INTEGER, 0);
- }
-
- function GetR3CAMA_Projection() {
- return R3Get(this.r3obj, R3CAMA_Projection, R3TID_INTEGER, 0);
- }
-
- R3CAMA_FilmSensitivity = 332509;
- function SetR3CAMA_FilmSensitivity(value) {
- R3Set(this.r3obj, R3CAMA_FilmSensitivity, value, R3TID_FLOAT, 0);
- }
-
- function GetR3CAMA_FilmSensitivity() {
- return R3Get(this.r3obj, R3CAMA_FilmSensitivity, R3TID_FLOAT, 0);
- }
-
- R3CAMA_AutoExposure = 332510;
- function SetR3CAMA_AutoExposure(value) {
- R3Set(this.r3obj, R3CAMA_AutoExposure, value, R3TID_INTEGER, 0);
- }
-
- function GetR3CAMA_AutoExposure() {
- return R3Get(this.r3obj, R3CAMA_AutoExposure, R3TID_INTEGER, 0);
- }
-
- R3CAMA_DepthOfField = 332511;
- function SetR3CAMA_DepthOfField(value) {
- R3Set(this.r3obj, R3CAMA_DepthOfField, value, R3TID_INTEGER, 0);
- }
-
- function GetR3CAMA_DepthOfField() {
- return R3Get(this.r3obj, R3CAMA_DepthOfField, R3TID_INTEGER, 0);
- }
-
- R3CAMA_FocalLength = 332512;
- function SetR3CAMA_FocalLength(value) {
- R3Set(this.r3obj, R3CAMA_FocalLength, value, R3TID_FLOAT, 0);
- }
-
- function GetR3CAMA_FocalLength() {
- return R3Get(this.r3obj, R3CAMA_FocalLength, R3TID_FLOAT, 0);
- }
-
- R3CAMA_Fstop = 332513;
- function SetR3CAMA_Fstop(value) {
- R3Set(this.r3obj, R3CAMA_Fstop, value, R3TID_FLOAT, 0);
- }
-
- function GetR3CAMA_Fstop() {
- return R3Get(this.r3obj, R3CAMA_Fstop, R3TID_FLOAT, 0);
- }
-
- R3CAMA_FocusingDistance = 332514;
- function SetR3CAMA_FocusingDistance(value) {
- R3Set(this.r3obj, R3CAMA_FocusingDistance, value, R3TID_FLOAT, 0);
- }
-
- function GetR3CAMA_FocusingDistance() {
- return R3Get(this.r3obj, R3CAMA_FocusingDistance, R3TID_FLOAT, 0);
- }
-
- R3CAMA_LensFlare = 332515;
- function SetR3CAMA_LensFlare(value) {
- R3Set(this.r3obj, R3CAMA_LensFlare, value, R3TID_STRING, 0);
- }
-
- function GetR3CAMA_LensFlare() {
- return R3Get(this.r3obj, R3CAMA_LensFlare, R3TID_STRING, 0);
- }
-
- R3CAMA_Flash = 332516;
- function SetR3CAMA_Flash(value) {
- R3Set(this.r3obj, R3CAMA_Flash, value, R3TID_COLOR_RGB, 0);
- }
-
- function GetR3CAMA_Flash() {
- return R3Get(this.r3obj, R3CAMA_Flash, R3TID_COLOR_RGB, 0);
- }
-
- R3CAMA_IsCurrent = 332517;
- function SetR3CAMA_IsCurrent(value) {
- R3Set(this.r3obj, R3CAMA_IsCurrent, value, R3TID_INTEGER, 0);
- }
-
- function GetR3CAMA_IsCurrent() {
- return R3Get(this.r3obj, R3CAMA_IsCurrent, R3TID_INTEGER, 0);
- }
-
- var R3CAMA_FlareLightInfoList = 332518; // Object
- R3CAMA_Scale = 332519;
- function SetR3CAMA_Scale(value) {
- R3Set(this.r3obj, R3CAMA_Scale, value, R3TID_FLOAT, 0);
- }
-
- function GetR3CAMA_Scale() {
- return R3Get(this.r3obj, R3CAMA_Scale, R3TID_FLOAT, 0);
- }
-
- R3CAMA_SafeWidth = 332520;
- function SetR3CAMA_SafeWidth(value) {
- R3Set(this.r3obj, R3CAMA_SafeWidth, value, R3TID_FLOAT, 0);
- }
-
- function GetR3CAMA_SafeWidth() {
- return R3Get(this.r3obj, R3CAMA_SafeWidth, R3TID_FLOAT, 0);
- }
-
- R3CAMA_SafeHeight = 332521;
- function SetR3CAMA_SafeHeight(value) {
- R3Set(this.r3obj, R3CAMA_SafeHeight, value, R3TID_FLOAT, 0);
- }
-
- function GetR3CAMA_SafeHeight() {
- return R3Get(this.r3obj, R3CAMA_SafeHeight, R3TID_FLOAT, 0);
- }
-
- R3CAMA_NoVertPersp = 332523;
- function SetR3CAMA_NoVertPersp(value) {
- R3Set(this.r3obj, R3CAMA_NoVertPersp, value, R3TID_INTEGER, 0);
- }
-
- function GetR3CAMA_NoVertPersp() {
- return R3Get(this.r3obj, R3CAMA_NoVertPersp, R3TID_INTEGER, 0);
- }
-
- var R3CAMA_RenderNoGeometry = 332524; // Boolean
- R3CAMA_Side = 332525;
- function SetR3CAMA_Side(value) {
- R3Set(this.r3obj, R3CAMA_Side, value, R3TID_VECTOR, 0);
- }
-
- function GetR3CAMA_Side() {
- return R3Get(this.r3obj, R3CAMA_Side, R3TID_VECTOR, 0);
- }
-
- R3CAMA_From = 332526;
- function SetR3CAMA_From(value) {
- R3Set(this.r3obj, R3CAMA_From, value, R3TID_VECTOR, 0);
- }
-
- function GetR3CAMA_From() {
- return R3Get(this.r3obj, R3CAMA_From, R3TID_VECTOR, 0);
- }
-
- R3CAMA_To = 332527;
- function SetR3CAMA_To(value) {
- R3Set(this.r3obj, R3CAMA_To, value, R3TID_VECTOR, 0);
- }
-
- function GetR3CAMA_To() {
- return R3Get(this.r3obj, R3CAMA_To, R3TID_VECTOR, 0);
- }
-
- var CAMP_POSITION = 0;
- var CAMP_DIRECTION = 1;
- var CAMP_UP = 2;
- var CAMP_SIDE = 3;
- var R3CAMP_PERSPECTIVE = 0;
- var R3CAMP_ORTHOGRAPHIC = 1;
-
-
- function r3Camera () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_CAMERA, arguments);
- }
- // Methods
- this.RENDERLENSFLARE=mR3CAMM_RENDERLENSFLARE;
- this.FINDCURRENT=mR3CAMM_FINDCURRENT;
- this.TRANSLATESELECTEDPOIN=mR3CAMM_TRANSLATESELECTEDPOIN;
- this.SETPOINTLOCAL=mR3CAMM_SETPOINTLOCAL;
- this.GETPOINTLOCAL=mR3CAMM_GETPOINTLOCAL;
-
- // Attributes
- this.GetPosition=GetR3CAMA_Position;
- this.SetPosition=SetR3CAMA_Position;
- this.GetDirection=GetR3CAMA_Direction;
- this.SetDirection=SetR3CAMA_Direction;
- this.GetUp=GetR3CAMA_Up;
- this.SetUp=SetR3CAMA_Up;
- this.GetAspectRatio=GetR3CAMA_AspectRatio;
- this.SetAspectRatio=SetR3CAMA_AspectRatio;
- this.GetCoordSys=GetR3CAMA_CoordSys;
- this.SetCoordSys=SetR3CAMA_CoordSys;
- this.GetFilmWidth=GetR3CAMA_FilmWidth;
- this.SetFilmWidth=SetR3CAMA_FilmWidth;
- this.GetFilmHeight=GetR3CAMA_FilmHeight;
- this.SetFilmHeight=SetR3CAMA_FilmHeight;
- this.GetAngle=GetR3CAMA_Angle;
- this.SetAngle=SetR3CAMA_Angle;
- this.GetProjection=GetR3CAMA_Projection;
- this.SetProjection=SetR3CAMA_Projection;
- this.GetFilmSensitivity=GetR3CAMA_FilmSensitivity;
- this.SetFilmSensitivity=SetR3CAMA_FilmSensitivity;
- this.GetAutoExposure=GetR3CAMA_AutoExposure;
- this.SetAutoExposure=SetR3CAMA_AutoExposure;
- this.GetDepthOfField=GetR3CAMA_DepthOfField;
- this.SetDepthOfField=SetR3CAMA_DepthOfField;
- this.GetFocalLength=GetR3CAMA_FocalLength;
- this.SetFocalLength=SetR3CAMA_FocalLength;
- this.GetFstop=GetR3CAMA_Fstop;
- this.SetFstop=SetR3CAMA_Fstop;
- this.GetFocusingDistance=GetR3CAMA_FocusingDistance;
- this.SetFocusingDistance=SetR3CAMA_FocusingDistance;
- this.GetLensFlare=GetR3CAMA_LensFlare;
- this.SetLensFlare=SetR3CAMA_LensFlare;
- this.GetFlash=GetR3CAMA_Flash;
- this.SetFlash=SetR3CAMA_Flash;
- this.GetIsCurrent=GetR3CAMA_IsCurrent;
- this.SetIsCurrent=SetR3CAMA_IsCurrent;
- this.GetScale=GetR3CAMA_Scale;
- this.SetScale=SetR3CAMA_Scale;
- this.GetSafeWidth=GetR3CAMA_SafeWidth;
- this.SetSafeWidth=SetR3CAMA_SafeWidth;
- this.GetSafeHeight=GetR3CAMA_SafeHeight;
- this.SetSafeHeight=SetR3CAMA_SafeHeight;
- this.GetNoVertPersp=GetR3CAMA_NoVertPersp;
- this.SetNoVertPersp=SetR3CAMA_NoVertPersp;
- this.GetSide=GetR3CAMA_Side;
- this.SetSide=SetR3CAMA_Side;
- this.GetFrom=GetR3CAMA_From;
- this.SetFrom=SetR3CAMA_From;
- this.GetTo=GetR3CAMA_To;
- this.SetTo=SetR3CAMA_To;
- }
-
- r3Camera.prototype=new r3Level;
- // r3camera.h_H